package com.newsee.remote.task;

import com.newsee.remote.storehouse.service.IShStorehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author liangzhi.chen
 * @description 仓库信息定期推送接口
 * @date 2019/11/12 下午 02:32
 **/
@Component
public class StoreHouseTask {

    @Autowired
    private IShStorehouseService iShStorehouseService;

    /**
     * 每天0点30分开始推送仓库信息
     */
    @Scheduled(cron = "0 30 0 * * ?")
    public void sync() {
        iShStorehouseService.pushStoreHouse(null, null);
    }

}
